<?php


namespace app\models;

use app\common\basic\Erp;
use think\Db;
use think\db\Query;


class Goods extends Base {
    // 创建
    public function createRow($data = [], $field = null, $replace = false)
    {
        return parent::create($data, $field, $replace);
    }

    // 修改
    public function updateRow($data = [], $where = []){
        return Base::updateByWhere($data, $where);
    }

    /** 获取所有 */
    public function all($where = [], $field = '*', $order = [])
    {
        $res = Base::getAll($where, $field, $order);
        return $res;
    }
    // 获取一条记录
    public function getRowInfo(array $where = [],  string $field = '*')
    {
        $res = Base::getRow($where, $field);
        return $res;
    }

    
}